package com.kingdee.eas.custom.mm;

import com.kingdee.bos.framework.ejb.EJBRemoteException;
import com.kingdee.bos.util.BOSObjectType;
import java.rmi.RemoteException;
import com.kingdee.bos.framework.AbstractBizCtrl;
import com.kingdee.bos.orm.template.ORMObject;

import java.lang.String;
import com.kingdee.bos.util.*;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.Context;
import com.kingdee.bos.BOSException;
import com.kingdee.eas.custom.mm.app.*;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.framework.*;

public class ImpFromSalePlanFacade extends AbstractBizCtrl implements IImpFromSalePlanFacade
{
    public ImpFromSalePlanFacade()
    {
        super();
        registerInterface(IImpFromSalePlanFacade.class, this);
    }
    public ImpFromSalePlanFacade(Context ctx)
    {
        super(ctx);
        registerInterface(IImpFromSalePlanFacade.class, this);
    }
    public BOSObjectType getType()
    {
        return new BOSObjectType("985FECFD");
    }
    private ImpFromSalePlanFacadeController getController() throws BOSException
    {
        return (ImpFromSalePlanFacadeController)getBizController();
    }
    /**
     *insertORupdate-User defined method
     *@param reqPlancollection reqPlancollection
     *@param salePlancollection salePlancollection
     */
    public void insertORupdate(IObjectCollection reqPlancollection, IObjectCollection salePlancollection) throws BOSException, EASBizException
    {
        try {
            getController().insertORupdate(getContext(), reqPlancollection, salePlancollection);
        }
        catch(RemoteException err) {
            throw new EJBRemoteException(err);
        }
    }
    /**
     *updateSalePlanCusFlag-User defined method
     *@param sellPlancollection sellPlancollection
     */
    public void updateSalePlanCusFlag(IObjectCollection sellPlancollection) throws BOSException, EASBizException
    {
        try {
            getController().updateSalePlanCusFlag(getContext(), sellPlancollection);
        }
        catch(RemoteException err) {
            throw new EJBRemoteException(err);
        }
    }
    /**
     *updateMoney-User defined method
     *@param sql sql
     *@return
     */
    public int updateMoney(String sql) throws BOSException
    {
        try {
            return getController().updateMoney(getContext(), sql);
        }
        catch(RemoteException err) {
            throw new EJBRemoteException(err);
        }
    }
}